<table class="table table-striped">
    <style>
        th{
            width: 14%;
        }
    </style>
    <tbody>
    <tr>
        <th>{:__('WorkID')}</th>
        <td>{$row.workID}</td>
    </tr>
    <tr>
        <th>{:__('Hospital_id')}</th>
        <td>{$row.hospital.name}</td>
    </tr>
    <tr>
        <th>{:__('User.nickname')}</th>
        <td>
            {if empty($row.user_id)}
            平台
            {else}
            <img class="mx-auto d-block" src="{$row.user.avatar}" style="max-width: 50px; max-height: 50px;border-radius: 50%;" />
            {$row.user.nickname}
            {/if}
        </td>
    </tr>
    <tr>

        <th>{:__('Equipment.name')}</th>
        <td>{$row.equipment.name}</td>
    </tr>
    <tr>

        <th>{:__('Equipment.marking')}</th>
        <td>{$row.equipment.marking}</td>
    </tr>
    <tr>

        <th>{:__('system_number')}</th>
        <td>{$row.equipment.serial}</td>
    </tr>
    <tr>

        <th>{:__('Software_version')}</th>
        <td>{$row.equipment.software_version}</td>
    </tr>
    <tr>

        <th>{:__('Describe')}</th>
        <td>{$row.describe}</td>
    </tr>
    <tr>
        <th>{:__('Images')}</th>
        <td>
            {if !empty($row.images) && count($row.images)>0}
            <div>
                <ul class="row list-inline plupload-preview" id="p-files" data-template="introtpl" data-name="row[intro]" data-listidx="0">
                    {foreach name="row.images" item="vo"}
                    <li class="col-xs-3">
                        <a href="{$vo}" data-url="{$vo}" target="_blank" class="thumbnail" data-cursor="pointer" style="cursor: pointer;">
                            <img src="{$vo}" class="img-responsive">
                        </a>
                    </li>
                    {/foreach}
                </ul>
            </div>
            {/if}
        </td>
        </td>
    </tr>
    <tr>

        <th>{:__('Contacts')}</th>
        <td>{$row.contacts}</td>
    </tr>
    <tr>

        <th>{:__('Mobile')}</th>
        <td>{$row.mobile}</td>
    </tr>
    <tr>

        <th>{:__('Status')}</th>
        <td>{if $row.type_data==1 && $row.status==1}
            待维保
            {else}
            {$row.status_text}
            {/if}</td>
    </tr>
    <tr>

        <th>{:__('Billing_data')}</th>
        <td>{$row.billing_data_text}</td>
    </tr>
    <tr>

        <th>{:__('Billing_images')}</th>
        <td>
            <div>
                <ul class="row list-inline plupload-preview" id="p-billing_images" data-template="introtpl" data-name="row[billing_images]" data-listidx="0">
                    {foreach name="row.billing_images" item="vo"}
                    <li class="col-xs-3">
                        <a href="{$vo}" data-url="{$vo}" target="_blank" class="thumbnail" data-cursor="pointer" style="cursor: pointer;">
                            <img src="{$vo}" class="img-responsive">
                        </a>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </td>
    </tr>
    {if !empty($row.examinetime)}
    <tr>

        <th>{:__('Examinetime')}</th>
        <td>{if !empty($row.examinetime)}{$row.examinetime_text}{else}——{/if}</td>
    </tr>
    {/if}
    <tr>

        <th>{:__('Createtime')}</th>
        <td>{if !empty($row.createtime)}{:date('Y-m-d H:i:s',$row.createtime)}{else}——{/if}</td>
    </tr>
    {if $row.type_data==1}
    <tr>
        <th>{:__('保修时间')}</th>
        <td>{if !empty($row.servicetime)}{:date('Y-m-d H:i:s',$row.servicetime)}{else}——{/if}</td>
    </tr>
    {else}
    <tr>

        <th>{:__('Warranty_time')}</th>
        <td>{if !empty($row.warranty_time)}{$row.warranty_time_text}{else}——{/if}</td>
    </tr>
    {/if}
    <tr>

        <th>{:__('Engineer_id')}</th>
        <td>{if $row.engineer_id!=0}
            <img class="mx-auto d-block" src="{$row.engineer.avatar}" style="max-width: 50px; max-height: 50px;border-radius: 50%;" />
            {$row.engineer.nickname}
            {else}
             ——
            {/if}
        </td>
    </tr>
    <tr>

        <th>{:__('Sale_id')}</th>
        <td>
            {if $row.sale_id!=0}
            <img class="mx-auto d-block" src="{$row.sale.avatar}" style="max-width: 50px; max-height: 50px;border-radius: 50%;" />
            {$row.sale.nickname}
            {else}
            ——
            {/if}
        </td>
    </tr>
    <tr>

        <th>{:__('Final_price')}</th>
        <td>{$row.final_price}</td>
    </tr>
    <tr>

        <th>{:__('Profit')}</th>
        <td>{$row.profit}</td>
    </tr>
    <tr>

        <th>{:__('Collect_data')}</th>
        <td>{$row.collect_data_text}</td>
    </tr>
    <tr>

        <th>{:__('Collect_time')}</th>
        <td>{$row.collect_time_text}</td>
    </tr>
    <!--{if $Think.get.dialog}
    <tr>
        <td>回传数据</td>
        <td>
            <div class="input-group">
                <input name="callback" class="form-control" value="test" />
                <span class="input-group-btn"><a href="javascript:;" class="btn btn-success btn-callback" >回传数据</a></span>
            </div>
        </td>
    </tr>
    {/if}-->
    </tbody>
</table>
<div class="hide layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
    </div>
</div>
